package tasks

import java.time.LocalDateTime

import akka.actor._
import play.api.Logging

class HelloActor extends Actor with Logging  {
  var count = 0
  def receive = {
    case massage:String => {
      count += 1
      println(s"${LocalDateTime.now()} receive $massage ($count)")
      logger.debug(s"${LocalDateTime.now()} receive $massage ($count)")
    }
  }
}